import request from '@/utils/request'

// 查询高买低卖列表
export function listAPrice(query) {
  return request({
    url: '/binance/aPrice/list',
    method: 'get',
    params: query
  })
}

// 查询高买低卖详细
export function getAPrice(code) {
  return request({
    url: '/binance/aPrice/' + code,
    method: 'get'
  })
}

// 新增高买低卖
export function addAPrice(data) {
  return request({
    url: '/binance/aPrice',
    method: 'post',
    data: data
  })
}

// 修改高买低卖
export function updateAPrice(data) {
  return request({
    url: '/binance/aPrice',
    method: 'put',
    data: data
  })
}

// 删除高买低卖
export function delAPrice(code) {
  return request({
    url: '/binance/aPrice/' + code,
    method: 'delete'
  })
}
